﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DSTMEETING.Data
{
    public class ApiResult
    {

        public bool IsSuccess { get; set; }

        public string Message { get; set; }

        public int ErrorCode { get; set; }

        public ApiResult()
        {
            IsSuccess = true;
            Message = null;
            ErrorCode = 0;
        }
    }

    public class ApiResult<T>
    {
        public T Data { get; set; }

        public bool IsSuccess { get; set; }

        public string Message { get; set; }

        public int ErrorCode { get; set; }

        public ApiResult(T data)
        {
            IsSuccess = true;
            Message = null;
            ErrorCode = 0;
            Data = data;
        }
    }
}
